# 直接在控制台打印模块状态的脚本

print("=== 模块状态检查 ===")
print()

# 检查pytesseract
try:
    import pytesseract
    print("✅ pytesseract: 已安装")
except ImportError:
    print("❌ pytesseract: 未安装")

# 检查cv2
try:
    import cv2
    print("✅ cv2: 已安装")
except ImportError:
    print("❌ cv2: 未安装")

# 检查numpy
try:
    import numpy
    print("✅ numpy: 已安装")
except ImportError:
    print("❌ numpy: 未安装")

# 检查ocr_module
try:
    from ocr_module import OCRProcessor
    print("✅ OCRProcessor: 可以导入")
    # 尝试初始化
    try:
        ocr = OCRProcessor()
        print(f"   ℹ️  初始化状态: {getattr(ocr, 'initialized', '未知')}")
    except Exception as e:
        print(f"   ⚠️  初始化失败: {str(e)}")
except ImportError as e:
    print(f"❌ OCRProcessor: 导入失败 - {str(e)}")

print()
print("=== 检查完成 ===")